import logo from './logo.svg';
import './App.css';
import {useState} from "react";

function App() {
    const [list, setList] = useState([
        {id:1,title:'仓库1'},
        {id:2,title:'仓库2'},
        {id:3,title:'仓库3'},
        {id:4,title:'仓库4'},
    ])

  return (
    <div>
      <div>{list.map(item=>
          <div key={item.id}>{item.title}</div>
      )}</div>
    </div>
  );
}

export default App;
